<template>
  <div class="box">
    <!-- 这是分类页面的左侧组件 -->
    <van-sidebar v-model="activeKey" @change="onChange" >
      <van-sidebar-item title="标签名1" />
      <van-sidebar-item title="标签名2" />
      <van-sidebar-item title="标签名3" />
    </van-sidebar>
  </div>
</template>

<script>
export default {
  name: "Leftcomponent",
  data() {
    return {
        activeKey:0,
    };
  },
  methods:{
    onChange(){
       
    }
  }
};
</script>

<style scoped lang='less'>
.box{
  float:left;
}
</style>